package cn.virens.database.mysql.mapper.sys;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.virens.database.common.BaseMapper;
import cn.virens.database.mysql.model.sys.SysRole;
import cn.virens.web.components.spring.permission.PermissionParam;

/**
 * 角色表（role） Mapper 接口
 *
 * @author Virens
 * @since  2017-10-22
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {
	List<String> getRoles(@Param("a") String account);

	List<Map<String, Object>> getResources(@Param("a") String account);

	int insertResources(PermissionParam record);

	int deleteResources(@Param("role") Integer role);

	List<Map<String, Object>> selectResources(@Param("role") Integer role);

}